@extends('admin.layouts.app')
@section('css')
        <!-- Custombox css -->
       
        <link href="{{asset('hrs/plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css')}}" rel="stylesheet">
         <link href="{{asset('admin/plugins/select2/css/select2.css')}}" rel="stylesheet">
@endsection 

@section('content')

                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">奖品管理</h4>
                                <ol class="breadcrumb">
                                    <li><a href="#">系统</a></li>
                                    <li><a href="{{url('zadmin/item')}}">奖品管理</a></li>
                                    <li class="active">添加奖品</li>
                                </ol>
                            </div>
                        </div>
                        
                        <div class="row">
                        	<div class="col-lg-12">
                        		<div class="card-box">
                            <h2 class="m-t-0 header-title">奖品详情</h2>
                            <hr/>
                             @if(session('rs') || $errors->any())
                              <div class="alert alert-danger">
                        @if($errors->any())
                            @foreach($errors->messages() as $msg )
                                {{$msg[0]}}
                            @endforeach
                        @endif
                                {{ session('rs')['msg'] }}
                              </div>
                              @endif
                        			<div class="row">
			                        	<div class="col-md-12">
                                  <form method="post" action="{{url('zadmin/gift')}}" enctype="multipart/form-data">
                            {{ csrf_field()}}
                            <div class="row">
                                <div class="col-lg-8">
                                    <div class="card-box">
                                        <h5 class="text-muted text-uppercase m-t-0 m-b-20"><b>添加奖品</b></h5>

                                        

                                        <div class="form-group m-b-20">
                                            <label>奖品名称 <span class="text-danger">*</span></label>
                                            <input type="text" class="form-control" name="name" placeholder="" value="{{old('name')}}">
                                        </div>

                                        <div class="form-group m-b-20">
                                            <label>奖品类型 <span class="text-danger">*</span>
                                            </label>
                                            &nbsp;<input type="radio"  name="type" placeholder="" value="1">实物&nbsp;&nbsp;
                                            <input type="radio"  name="type" checked='' value="2">虚拟
                                        </div>
<div class="form-group">
                          <label>奖品内容</label>
                         
                            <input type="text" class="form-control" name="content" value="" required="">
                          
                      </div>
                                        <div class="form-group m-b-20">
                                            <label>奖品数量 <span class="text-danger">*</span></label>
                                            <input type="text" class="form-control" name="num" placeholder="" value="{{old('num')}}" required=""> 
                                        </div>
                                        <div class="form-group">
                                            <label>中奖率 <span class="text-danger">*</span></label>
                                                 
                                            <input type="text" class="form-control" name="rate"  placeholder="0.002" value="" >
                                                 
                                        </div>
                                        <div class="form-group">
                                            <label >URL</label>
                                                 
                                                <input type="text" class="form-control" name="coupon_url" placeholder="优惠券URL"  value="" >
                                                 
                                              </div>

                                              
                                        


                                <div class="form-group">
                                  
                                    <div class="text-center p-20">
                                         
                                         <button type="submit" class="btn w-sm btn-default waves-effect waves-light">提交</button>
                                         
                                    </div>
                                </div>
                           

                                        

                                    </div>

                                </div>


                            </div>


                            
                        
                        </form>
                                </div>
			                        	
			                        </div>

                             
			                        
                        			
                        		</div>
                                
                            </div> <!-- end col -->

                            
                        </div>
@endsection
                        
                        
                        

                  
            
 


    
@section('js')
        
@endsection
    
